﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Entities;
using Context;
namespace WCF_ListenMusic.Services.Module_Country.Public
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "CountryService" in code, svc and config file together.
    public class CountryService : ICountryService
    {
        Context.Connect_DBDataContext context = new Context.Connect_DBDataContext();


        public List<Country> getAllCountry()
        {
            try {
                var q = from a in context.Countries
                        where !a.CountryID.Equals(3)
                        select a;
                return q.ToList();
            }
            catch (Exception e) { throw new FaultException(e.Message); }
        }
    }
}
